package cn.edu.scau.cmi.liquan.exercise9;

public class Example9_3ConsoleClient {

	public static void main(String[] args) {
         String path="c:\\book\\javabook\\java Programmer.doc";
         int index=path.indexOf("\\");
         index=path.indexOf("\\",index);
         String sub=path.substring(index);
         System.out.println(sub);
         index=path.lastIndexOf("\\");
         sub=path.substring(index+1);
         System.out.println(sub);
         System.out.println(sub.contains("Programmer"));
	}

}
